package com.example.im.controller;

import com.example.im.client.TestFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @Author: whopxx
 * @CreateTime: 2025-03-05
 */
@RestController
@RequestMapping("/userinfo")
@Slf4j
public class TestController {
    @Autowired
    private TestFeign testFeign;
    @GetMapping("/t")
    public String test() {
        log.info("im");
        return "im";
    }

    @GetMapping("/tf")
    public String testf() {
        String test = testFeign.test();
        log.info(test);
        return "im";
    }
}
